package com.sc.nft.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class PopupAnnouncementAdminAddDTO {
    @ApiModelProperty(value = "app版本")
    @NotBlank(message = "app版本不能为空")
    private String appVersion;

    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空")
    @Length(max = 8,message = "标题长度不能超过8")
    private String title;

    @ApiModelProperty(value = "更新内容")
    @NotBlank(message = "更新内容不能为空")
    private String content;

    @ApiModelProperty(value = "1:停机维护公告,只有1条  不可通过程序修改 2:更新公告")
    @NotNull(message = "公告类型不能为空")
    private Integer popupType;

    @ApiModelProperty(value = "0:关闭 1:开启")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @ApiModelProperty(value = "开始时间")
    @NotNull(message = "开始时间不能为空")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @NotNull(message = "结束时间不能为空")
    private Date endTime;
}
